<template>
	<view class="box">
	<view class="item item1">
		<view class="itemleft">
			<view class="i1">
				<image src="/static/smallIcon/loginphone.png" alt="">
			</view>
			<view class="i2">
				<input type="number" placeholder="请输入手机号" v-model="form.mobile" />
			</view>
		</view>
		<view class="itemRight">
			
		</view>
	</view>
	<view class="item">
		<view class="itemleft">
			<view class="i1">
				<image src="/static/smallIcon/shield.png" alt="">
			</view>
			<view class="i2">
				<input type="number" placeholder="请输入信息验证码" v-model="form.code"  />
			</view>
		</view>
		<view class="itemRight">
			获取信息验证码
		</view>
	</view>
	<view class="item">
		<view class="itemleft">
			<view class="i1">
				<image src="/static/smallIcon/forgetpassword.png" alt="">
			</view>
			<view class="i2">
				<input type="number" placeholder="请输入新手机号码" v-model="form.nmobile"  />
			</view>
		</view>
		<view class="itemRight">
			
		</view>
	</view>
	
		<view class="btn" @click="ok">
			确认修改
		</view>
	</view>
</template>

<script>
	import conmon from '@/commonFun/conmon.js';
	export default {
		data() {
			return {
				form: {}, // 传参的数据
				value:''
			}
		},
		methods: {
			ok() {
				this.$request("/appapi/applet/login/editMobile",{
					mobile : this.form.mobile,
					code : this.form.code,
					nmobile : this.form.nmobile
				}).then(res=>{
					if(res.data.code == 1){
						console.log(res.data);
					}else{
						uni.showToast({
							title: res.data.msg,
							icon:'error'
						});
					}
				})
			}
		},
	}
</script>

<style lang="scss" scoped>
.box{
	height: 100vh;
	background-color: #ffffff;
	padding: 40rpx;
	.item{
		border-bottom: 1px solid #CECECE;
		display: flex;
		margin-top: 70rpx;
		justify-content: space-between;
		margin-bottom: 20px;
		font-size: 32rpx;
		.itemleft{
			display: flex;
			.i1{
				image{
					width: 28rpx;
					height: 32rpx;
					font-size: 36rpx;
					transform: translateY(8px);
				}
			}
			.i2{
				margin-left: 20px;
				input{
					font-size: 32rpx;
					height: 70rpx
				}
			}
		}
		.itemRight{
			// align-items: center;
			color: #F5AC4F !important;
			padding: 4rpx 0 0 0;color: #333333;
		}
	}
	.item1{
		margin-top: 30rpx;
	}
	.btn{
		text-align: center;
		padding: 20rpx;
		color: #fff;
		border-radius: 10px;
		background-color: #F5AC4F;
	}
}
</style>